package com.tjetc.controller;
import com.tjetc.domain.MedicineListItem;
import com.tjetc.service.impl.MedicineListItemServiceImpl;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
* (medicine_list_item)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/medicine_list_item")
public class MedicineListItemController {
/**
* 服务对象
*/
@Resource
private MedicineListItemServiceImpl medicineListItemServiceImpl;

/**
* 通过主键查询单条数据
*
* @param id 主键
* @return 单条数据
*/
@GetMapping("selectOne")
public MedicineListItem selectOne(Integer id) {
return medicineListItemServiceImpl.selectByPrimaryKey(id);
}

}
